<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/9 0009
 * Time: 11:01
 */

namespace app\wap\controller;
use think\Db;

class Vcr extends Base
{
        public function index(){
            $type = intval(input('param.type'));
            $where ='is_show=1 and sign="mobile" and is_del = 0';
            if($type){
                $where .=' and type = '.$type;
                $this->assign('type',$type);
            }else{
                $where .=' and type = 1';
                $this->assign('type',1);
            }
            //基地
            $data_vcr = Db::name('vcr')->where($where)->order('sort desc,id desc')->select();
            $this->assign('data_vcr',$data_vcr);
            $this->assign('data_seo',getColumnseo(11));
            return $this->fetCh();
    }





}